﻿app.factory("AlbumList", function () {
    return [];
})

app.controller("ngAlbumController", function ($scope, $http, $location, AlbumList) {
    $scope.albums = AlbumList;

    $http.get("/api/album").success(function (data) {
        $scope.albums = data;
    }).error(function(data){
        console.log(JSON.stringify(data))
    });
});